import { RuleResponse } from "@/Types/Types";
import { Validator } from "./Validator";

/**
 * 验证此项必须存在不是 null
 */
export const RequireValidator: Validator<never> = function(
  input: never
): RuleResponse {
  if (!input) {
    return "此项必须输入";
  }
  return true;
};
